package com.xcx.commoncore.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class TeacherQuery {
    @ApiModelProperty(value = "教师名称,模糊查询",name = "name",example = "测试")
//    @NotBlank(message = "讲师姓名 不能为空")
//    @Size(max = 32, min = 1, message = "讲师姓名 长度1-64位之间")
    private String name;

    @ApiModelProperty(value = "头衔 1高级讲师 2首席讲师")
//    @Min(value = 0,message = "讲师等级不能为空")
    private Integer level;


    @ApiModelProperty(value = "查询开始时间", example = "2019-01-01 10:10:10")
    private String begin;//注意，这里使用的是String类型，前端传过来的数据无需进行类型转换

    @ApiModelProperty(value = "查询结束时间", example = "2019-12-01 10:10:10")
    private String end;

    @ApiModelProperty(value = "页数", example = "1")
    private Integer pageNo = 1;
    @ApiModelProperty(value = "条数", example = "10")
    private Integer pageSize = 10;
    @ApiModelProperty(value = "排序字段", example = "id")
    private String orderField = "id";
    @ApiModelProperty(value = "排序规则", example = "倒序")
    private String orderDirection = "DESC";




}
